<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Product;
class Category extends Model
{
    //
    protected $table = 'dg_category';

    protected $fillable=['pid','name','image'];

    public function products()
    {
        return $this->hasMany('App\Models\Product','cate_id','id');
    }
}
